package com.cqjtu.drive.mapper;

import com.cqjtu.drive.pojo.Student;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StudentMapper {

    Student getStudentById(String sId);
    Student getStudentByuserId(String userId);

    void insertStudent(Student student);

    void updateStudent(Student student);
    void updatesAccept(Student student);

    void deleteStudent(String sId);

    void deleteBySName(String sName);

    List<Student> getAllStudents();

    List<Student> getStudentsByName(String sName);



}
